//
//  ShoutBossAppDelegate.m
//  ShoutBoss
//
//  Created by Luck Mstone on 6/15/09.
//  Copyright MS 2009. All rights reserved.
//

#import "ShoutBossAppDelegate.h"

// import cocos2d classes you'll need:
#import "cocos2d.h"
#import "Scene.h"

#import "LogoScene.h"

@implementation ShoutBossAppDelegate

- (void)applicationDidFinishLaunching:(UIApplication *)application {
	window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    [window setUserInteractionEnabled:YES];
    [window setMultipleTouchEnabled:YES];
	
	// set up Director, probably something like this:
	[[Director sharedDirector] setPixelFormat:kRGBA8];
	[[Director sharedDirector] setLandscape:YES];
    [[Director sharedDirector] attachInWindow:window];
	
	// display FPS (useful when debugging)
	[[Director sharedDirector] setDisplayFPS:YES];
	
	// frames per second
	[[Director sharedDirector] setAnimationInterval:1.0/60];
	
    [window makeKeyAndVisible];	
	
	// make a scene, probably something like this:
	
	LogoScene* logoScene = [LogoScene node];
	[[Director sharedDirector] runWithScene:logoScene];
}


- (void)dealloc {
	[window release];
    [super dealloc];
}


@end
